﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body style="text-align: center">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" > </asp:ScriptManager>
       
        <br />
        Upload Domain List file in text format:
        <asp:FileUpload ID="FileUpload1" runat="server" />
        <asp:Button ID="btnLoad" runat="server" OnClick="btnLoad_Click" Text="Upload" Height="24px" Width="59px" />
        &nbsp; &nbsp; &nbsp;&nbsp;<br />
        <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
            <ProgressTemplate>
                <asp:Label ID="Label1" runat="server" BackColor="Red" Text="Please Wait While Processing...."></asp:Label>
            </ProgressTemplate>
        </asp:UpdateProgress>
        <br />
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:Label ID="lblIPaddress" runat="server" ForeColor="Blue" Width="926px"></asp:Label><asp:TextBox ID="txtDomaiList" runat="server" Height="94px" TextMode="MultiLine" Width="884px" Wrap="False"></asp:TextBox>&nbsp;
                <asp:Button ID="btnSubmit" runat="server" OnClick="Button3_Click" Text="Bulk Whois Lookup" Width="285px" /><asp:Button ID="btnPing" runat="server" OnClick="btnPing_Click" Text="Ping" Width="282px" /><asp:Button ID="btnTracert" runat="server" OnClick="btnTracert_Click" Text="Tracert"
            Width="279px" /><asp:Label ID="lblPingTracert" runat="server" Height="13px" Width="924px"></asp:Label><asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" ShowFooter="True" Width="906px" CellPadding="4" ForeColor="#333333" Height="428px" PageSize="3" OnPageIndexChanging="GridView1_PageIndexChanging">
                    <Columns>
                        <asp:TemplateField>
                            <ItemTemplate>                                
                                <a target="_blank" href="Http://<%#DataBinder.Eval(Container.DataItem,"DomainName") %>"><%#DataBinder.Eval(Container.DataItem,"DomainName")%></a>
                            </ItemTemplate>
                            <HeaderTemplate>
                                Domain Names
                            </HeaderTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Type Of Server
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"ServerType") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                Associated Emails
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"Email") %>'
                                    TextMode="MultiLine" Width="222px" Wrap="False" Height="57px"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                WhoIs Details
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server" Height="276px" Text='<%# DataBinder.Eval(Container.DataItem,"WhoisDetails") %>'
                                    TextMode="MultiLine" Width="387px" Wrap="False"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <EditRowStyle BackColor="#999999" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                </asp:GridView>
            </ContentTemplate>
        </asp:UpdatePanel>
        &nbsp;<br />
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <br />
        <br />
        <br />
        <br />
    </form>
</body>
</html>
